import { Controller, Get, Inject, UseGuards } from '@nestjs/common';
import { AppService } from './app.service';
import { ConfigModule, ConfigService } from '@nestjs/config';

@Controller()
export class AppController {
  constructor(private readonly appService: AppService) {}

  @Inject(ConfigService)
  private configService:ConfigService
  @Get()
  getHello(): any {
    return {
      aaa:this.configService.get('DB_HOST')
    }
  }
  @Get('aaa')
  getaaa(): string {
    return 'aaa'
  }
}
